﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ShopInfo.ascx.cs" Inherits="UserControl_ShopInfo" %>
  <div class="shopinfoallfm">
                <div class="shopinfotopfm">
                </div>
                <div class="shopinfocfm">
                    <div class="shopphotofm">
                        <img src="../img/jiumenxiaochi.png" alt="" />
                        <div class="shopphotofm1">
                            <a href="#">32张图片</a> <a href="#">上传</a>
                        </div>
                    </div>
                    <div class="shopinfofm">
                        <h4><%=shopModel.shopName%></h4>
                        <div class="tip">
                            标签：<span><%=shopModel.shopTag %></span></div>
                        <a href="#" class="bus">公交路线</a> <a href="#" class="car">自驾车路线</a>
                        <div class="telephone">
                            电话：
                            <%foreach (var telNum in shopModel.shopTelNumber)
                              {%>
                            <span><%=telNum%></span>
                            <%} %>
                        </div>
                        <div>
                            地址：<span><%=shopModel.shopAddress %> </span>
                        </div>
                        <div>
                            营业时间：<span><%=shopModel.shopOnTime %></div>
                        <div>
                            交通信息：<span><%=shopModel.shopTransportInfo %></span></div>
                        <div class="goframe">
                            <a href="#" class="wantgo">想去(<%=shopModel.shopWantNum %>)</a> <a href="#" class="gone">去过(<%=shopModel.shopGoneNum %>)</a>
                        </div>
                        <div class="shopphotofm2" id="title1">
                            <a href="#">修改</a> <a href="#">纠错</a>
                        </div>
                    </div>
                    <div class="shopfeaturefm" >
                        <div>
                            <div>
                                推荐菜：</div>
                            <ul>
                                <li>爆肚</li>
                                <li>奶酪</li>
                                <li>魏卤煮</li>
                                <li>褡裢火烧</li>
                                <li>炒肝</li>
                                <li>灌肠</li>
                            </ul>
                        </div>
                        <div>
                            <div>特色服务：</div>
                            <ul>
                            <% foreach (var feature in shopModel.shopFeature)
                               {%>
                               <li><%=feature %></li>
                            <%} %>
                            </ul>
                        </div>
                        <div>
                            <div>
                                支持：</div>
                            <ul>
                              <% foreach (var insist in shopModel.shopInsist)
                               {%>
                               <li><%=insist %></li>
                            <%} %>
                            </ul>
                        </div>
                    </div>
                    <div class="buttonGroup">
                    </div>
                    
                </div>
                <div class="shopinfobfm">
                </div>
            </div>

<script type="text/javascript">
    $(document).ready(function () {
        var shopStatusOpt = "<%=ShopStatusMode%>";
        var html = "";
        switch (shopStatusOpt) {
            case "NULLMODE":
                {
                    html = '<a href="#" class="debate">我要点评</a> '
                    + '<a href="#" class="debate">分享</a>';

                    break;
                }
            case "NOSTROREOWNERMODE":
                {
                    html = '<a href="#" class="debate">我要点评</a> '
                    + '<a href="#" class="debate">分享</a>';
                    break;
                }
            case "FULLMODE":
                {
                    html = '<a href="#" class="debate">我要点评</a> '
                    + '<a href="#" class="debate">分享</a>'
                    + '<a href="#" class="debate">组织团购</a>';
                    break;
                }
            default:
                html = "";
                break;
        }
        $(".buttonGroup").append(html);
    });
</script>